package www.wen.com.common.lib.initializer

import android.content.Context
import androidx.startup.Initializer
import com.jeremyliao.liveeventbus.LiveEventBus

/**
 * @author WEN
 * @Description:
 * @date 2020/11/30 3:02
 */
class LiveEventBusInitializer : Initializer<Unit> {

    override fun create(context: Context) {
        LiveEventBus
            .config()
            .lifecycleObserverAlwaysActive(true)
    }

    override fun dependencies(): List<Class<out Initializer<*>>> = emptyList()

}


